import { SerializeStream } from "../../Framework/Serialize/SerializeStream";
import { MarshalException } from "../../Engine/RMI/MarshalException";
type int = number;
//class EJewel
    
    export  class EJewel
    {
        constructor(arg1: int)
        {
            
            this.__value = arg1;
            return;
        }

        public static __read(arg1: SerializeStream): EJewel
        {
            var loc1=arg1.readShort();
            if (loc1 < 0 || loc1 >= 209) 
            {
                throw new MarshalException();
            }
            return EJewel.convert(loc1);
        }

        public value(): int
        {
            return this.__value;
        }

        public __write(arg1: SerializeStream): void
        {
            arg1.writeShort(this.__value);
            return;
        }

        public static convert(arg1: int): EJewel
        {
            return new EJewel(arg1);
        }

        public static /* const */_EJewelMana: int=2;

        public static /* const */_EJewelPower: int=3;

        public static /* const */_EJewelAgile: int=4;

        public static /* const */_EJewelHabitus: int=5;

        public static /* const */_EJewelBrains: int=6;

        public static /* const */_EJewelSpiritual: int=7;

        public static /* const */_EJewelPhysicalAttack: int=8;

        public static /* const */_EJewelMagicAttack: int=9;

        public static /* const */_EJewelPhysicalDefense: int=10;

        public static /* const */_EJewelMagicDefense: int=11;

        public static /* const */_EJewelPhysicalCrit: int=12;

        public static /* const */_EJewelMagicCrit: int=13;

        public static /* const */_EJewelHit: int=14;

        public static /* const */_EJewelJouk: int=15;

        public static /* const */_EJewelPass: int=16;

        public static /* const */_EJewelBlock: int=17;

        public static /* const */_EJewelSpeededUp: int=18;

        public static /* const */_EJewelToughness: int=19;

        public static /* const */_EJewelRelief: int=20;

        public static /* const */_EJewelWuXingAttack: int=21;

        public static /* const */_EJewelWuXingDefenseGold: int=22;

        public static /* const */_EJewelWuXingDefenseWood: int=23;

        public static /* const */_EJewelWuXingDefenseWater: int=24;

        public static /* const */_EJewelWuXingDefenseFire: int=25;

        public static /* const */_EJewelWuXingDefenseEarth: int=26;

        public static /* const */_EJewelHarmDeeper: int=27;

        public static /* const */_EJewelHarmLower: int=28;

        public static /* const */_EJewelHitRate: int=101;

        public static /* const */_EJewelJoukRate: int=102;

        public static /* const */_EJewelPassRate: int=103;

        public static /* const */_EJewelBlockRate: int=104;

        public static /* const */_EJewelSpeededUpRate: int=105;

        public static /* const */_EJewelToughnessRate: int=106;

        public static /* const */_EJewelReliefRate: int=107;

        public static /* const */_EJewelMagicReliefRate: int=109;

        public static /* const */_EJewelDoubleJewelPhysical: int=200;

        public static /* const */_EJewelDoubleJewelMagic: int=201;

        public static /* const */_EJewelDoubleJewelNimble: int=202;

        public static /* const */_EJewelDoubleJewelSoul: int=203;

        public static /* const */_EJewelPhysicalReliefRate: int=108;

        public static /* const */_EJewelDoubleJewelRage: int=205;

        public static /* const */_EJewelDoubleJewelCraze: int=206;

        public static /* const */_EJewelDoubleJewelLife: int=207;

        public static /* const */_EJewelDoubleJewelBelif: int=208;

        public static /* const */_EJewelLife: int=1;

        public static /* const */_EJewelDoubleJewelViolent: int=204;

        public /* var */__value: int;
    }
